﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class ScaleBarWidget
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class ScaleBarWidget
   ">
    <meta name="generator" content="docfx 2.40.12.0">
    
    <link rel="shortcut icon" href="../images/favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    <meta property="docfx:rel" content="../">
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../images/logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div class="container body-content">
        
        <div id="search-results">
          <div class="search-list"></div>
          <div class="sr-items">
            <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
          </div>
          <ul id="pagination"></ul>
        </div>
      </div>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget">
  
  
  <h1 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget" class="text-break">Class ScaleBarWidget
  </h1>
  <div class="markdown level0 summary"><p>A ScaleBarWidget displays the ratio of a distance on the map to the corresponding distance on the ground.
It uses always the center of a given Viewport to calc this ratio.</p>
<p>Usage
To show a ScaleBarWidget, add a instance of the ScaleBarWidget to Map.Widgets by</p>
<p>map.Widgets.Add(new ScaleBarWidget(map));</p>
<p>Customize
ScaleBarMode: Determins, how much scalebars are shown. Could be Single or Both.
SecondaryUnitConverter: First UnitConverter for upper scalebar. There are UnitConverters for metric, imperial and nautical units.
SecondaryUnitConverter = NauticalUnitConverter.Instance });
MaxWidth: Maximal width of the scalebar. Real width could be smaller.
HorizontalAlignment: Where the ScaleBarWidget is shown. Could be Left, Right, Center or Position.
VerticalAlignment: Where the ScaleBarWidget is shown. Could be Top, Bottom, Center or Position.
PositionX: If HorizontalAlignment is Position, this value determins the distance to the left
PositionY: If VerticalAlignment is Position, this value determins the distance to the top
TextColor: Color for text and lines
Halo: Color used around text and lines, so the scalebar is better visible
TextAlignment: Alignment of scalebar text to the lines. Could be Left, Right or Center
TextMargin: Space between text and lines of scalebar
Font: Font which is used to draw text
TickLength: Length of the ticks at scalebar</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><a class="xref" href="Mapsui.Widgets.Widget.html">Widget</a></div>
    <div class="level2"><span class="xref">ScaleBarWidget</span></div>
  </div>
  <div classs="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="Mapsui.Widgets.IWidget.html">IWidget</a></div>
    <div><span class="xref">INotifyPropertyChanged</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <a class="xref" href="Mapsui.Widgets.Widget.html#Mapsui_Widgets_Widget_HorizontalAlignment">Widget.HorizontalAlignment</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.Widgets.Widget.html#Mapsui_Widgets_Widget_VerticalAlignment">Widget.VerticalAlignment</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.Widgets.Widget.html#Mapsui_Widgets_Widget_MarginX">Widget.MarginX</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.Widgets.Widget.html#Mapsui_Widgets_Widget_MarginY">Widget.MarginY</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.Widgets.Widget.html#Mapsui_Widgets_Widget_Envelope">Widget.Envelope</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.Widgets.Widget.html#Mapsui_Widgets_Widget_CalculatePositionX_System_Single_System_Single_System_Single_">Widget.CalculatePositionX(Single, Single, Single)</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.Widgets.Widget.html#Mapsui_Widgets_Widget_CalculatePositionY_System_Single_System_Single_System_Single_">Widget.CalculatePositionY(Single, Single, Single)</a>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="Mapsui.Widgets.ScaleBar.html">Mapsui.Widgets.ScaleBar</a></h6>
  <h6><strong>Assembly</strong>: Mapsui.dll</h6>
  <h5 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ScaleBarWidget : Widget, IWidget, INotifyPropertyChanged</code></pre>
  </div>
  <h3 id="constructors">Constructors
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget__ctor_Mapsui_Map_.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.%23ctor(Mapsui.Map)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L48">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget__ctor_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.#ctor*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget__ctor_Mapsui_Map_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.#ctor(Mapsui.Map)">ScaleBarWidget(Map)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public ScaleBarWidget(Map map)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Map.html">Map</a></td>
        <td><span class="parametername">map</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_Font.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.Font%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L184">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_Font_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.Font*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_Font" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.Font">Font</h4>
  <div class="markdown level1 summary"><p>Font to use for drawing text</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Font Font { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Styles.Font.html">Font</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_Halo.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.Halo%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L127">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_Halo_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.Halo*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_Halo" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.Halo">Halo</h4>
  <div class="markdown level1 summary"><p>Halo color of scalebar and text, so that it is better visible</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Color Halo { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Styles.Color.html">Color</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_Height.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.Height%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L91">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_Height_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.Height*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_Height" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.Height">Height</h4>
  <div class="markdown level1 summary"><p>Real height of scalebar. Depends on number of unit converters and text size.
Is calculated by renderer.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public float Height { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_MaxWidth.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.MaxWidth%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L71">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_MaxWidth_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.MaxWidth*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_MaxWidth" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.MaxWidth">MaxWidth</h4>
  <div class="markdown level1 summary"><p>Maximum usable width for scalebar. The real used width could be less, because we 
want only integers as text.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public float MaxWidth { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_Scale.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.Scale%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L139">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_Scale_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.Scale*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_Scale" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.Scale">Scale</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public float Scale { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_ScaleBarMode.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.ScaleBarMode%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L246">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_ScaleBarMode_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.ScaleBarMode*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_ScaleBarMode" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.ScaleBarMode">ScaleBarMode</h4>
  <div class="markdown level1 summary"><p>ScaleBarMode of scalebar. Could be Single to show only one or Both for showing two units.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public ScaleBarMode ScaleBarMode { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Widgets.ScaleBar.ScaleBarMode.html">ScaleBarMode</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_SecondaryUnitConverter.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.SecondaryUnitConverter%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L226">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_SecondaryUnitConverter_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.SecondaryUnitConverter*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_SecondaryUnitConverter" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.SecondaryUnitConverter">SecondaryUnitConverter</h4>
  <div class="markdown level1 summary"><p>Secondary unit converter for lower text if ScaleBarMode is Both. Default is ImperialUnitConverter.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IUnitConverter SecondaryUnitConverter { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Widgets.ScaleBar.IUnitConverter.html">IUnitConverter</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_ShowEnvelop.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.ShowEnvelop%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L264">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_ShowEnvelop_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.ShowEnvelop*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_ShowEnvelop" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.ShowEnvelop">ShowEnvelop</h4>
  <div class="markdown level1 summary"><p>Draw a rectangle around the scale bar for testing</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool ShowEnvelop { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_StrokeWidth.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.StrokeWidth%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L144">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_StrokeWidth_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.StrokeWidth*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_StrokeWidth" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.StrokeWidth">StrokeWidth</h4>
  <div class="markdown level1 summary"><p>Stroke width for lines</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public float StrokeWidth { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_StrokeWidthHalo.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.StrokeWidthHalo%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L149">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_StrokeWidthHalo_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.StrokeWidthHalo*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_StrokeWidthHalo" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.StrokeWidthHalo">StrokeWidthHalo</h4>
  <div class="markdown level1 summary"><p>Stroke width for halo of lines</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public float StrokeWidthHalo { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_TextAlignment.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.TextAlignment%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L161">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_TextAlignment_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.TextAlignment*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_TextAlignment" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.TextAlignment">TextAlignment</h4>
  <div class="markdown level1 summary"><p>Alignment of text of scalebar</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Alignment TextAlignment { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Widgets.Alignment.html">Alignment</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_TextColor.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.TextColor%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L110">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_TextColor_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.TextColor*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_TextColor" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.TextColor">TextColor</h4>
  <div class="markdown level1 summary"><p>Foreground color of scalebar and text</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Color TextColor { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Styles.Color.html">Color</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_TextMargin.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.TextMargin%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L177">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_TextMargin_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.TextMargin*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_TextMargin" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.TextMargin">TextMargin</h4>
  <div class="markdown level1 summary"><p>Margin between end of tick and text</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public float TextMargin { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_TickLength.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.TickLength%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L154">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_TickLength_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.TickLength*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_TickLength" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.TickLength">TickLength</h4>
  <div class="markdown level1 summary"><p>Length of the ticks</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public float TickLength { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_UnitConverter.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.UnitConverter%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L202">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_UnitConverter_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.UnitConverter*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_UnitConverter" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.UnitConverter">UnitConverter</h4>
  <div class="markdown level1 summary"><p>Normal unit converter for upper text. Default is MetricUnitConverter.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IUnitConverter UnitConverter { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Widgets.ScaleBar.IUnitConverter.html">IUnitConverter</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_CanTransform.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.CanTransform%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L476">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_CanTransform_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.CanTransform*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_CanTransform" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.CanTransform">CanTransform()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool CanTransform()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_GetScaleBarLengthAndText_Mapsui_IReadOnlyViewport_.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.GetScaleBarLengthAndText(Mapsui.IReadOnlyViewport)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L275">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_GetScaleBarLengthAndText_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.GetScaleBarLengthAndText*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_GetScaleBarLengthAndText_Mapsui_IReadOnlyViewport_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.GetScaleBarLengthAndText(Mapsui.IReadOnlyViewport)">GetScaleBarLengthAndText(IReadOnlyViewport)</h4>
  <div class="markdown level1 summary"><p>Calculates the length and text for both scalebars</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public (float scaleBarLength1, string scaleBarText1, float scaleBarLength2, string scaleBarText2)GetScaleBarLengthAndText(IReadOnlyViewport viewport)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.IReadOnlyViewport.html">IReadOnlyViewport</a></td>
        <td><span class="parametername">viewport</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ValueTuple</span>&lt;<span class="xref">System.Single</span>, <span class="xref">System.String</span>, <span class="xref">System.Single</span>, <span class="xref">System.String</span>&gt;</td>
        <td><p>Length of upper scalebar
Text of upper scalebar
Length of lower scalebar
Text of lower scalebar</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_GetScaleBarLinePositions_Mapsui_IReadOnlyViewport_System_Single_System_Single_System_Single_.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.GetScaleBarLinePositions(Mapsui.IReadOnlyViewport%2CSystem.Single%2CSystem.Single%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L304">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_GetScaleBarLinePositions_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.GetScaleBarLinePositions*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_GetScaleBarLinePositions_Mapsui_IReadOnlyViewport_System_Single_System_Single_System_Single_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.GetScaleBarLinePositions(Mapsui.IReadOnlyViewport,System.Single,System.Single,System.Single)">GetScaleBarLinePositions(IReadOnlyViewport, Single, Single, Single)</h4>
  <div class="markdown level1 summary"><p>Get pairs of points, which determin start and stop of the lines used to draw the scalebar</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Point[] GetScaleBarLinePositions(IReadOnlyViewport viewport, float scaleBarLength1, float scaleBarLength2, float stroke)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.IReadOnlyViewport.html">IReadOnlyViewport</a></td>
        <td><span class="parametername">viewport</span></td>
        <td><p>The viewport of the map</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">scaleBarLength1</span></td>
        <td><p>Length of upper scalebar</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">scaleBarLength2</span></td>
        <td><p>Length of lower scalebar</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">stroke</span></td>
        <td><p>Width of line</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Geometries.Point.html">Point</a>[]</td>
        <td><p>Array with pairs of Points. First is always the start point, the second is the end point.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_GetScaleBarTextPositions_Mapsui_IReadOnlyViewport_Mapsui_Geometries_BoundingBox_Mapsui_Geometries_BoundingBox_Mapsui_Geometries_BoundingBox_System_Single_.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.GetScaleBarTextPositions(Mapsui.IReadOnlyViewport%2CMapsui.Geometries.BoundingBox%2CMapsui.Geometries.BoundingBox%2CMapsui.Geometries.BoundingBox%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L417">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_GetScaleBarTextPositions_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.GetScaleBarTextPositions*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_GetScaleBarTextPositions_Mapsui_IReadOnlyViewport_Mapsui_Geometries_BoundingBox_Mapsui_Geometries_BoundingBox_Mapsui_Geometries_BoundingBox_System_Single_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.GetScaleBarTextPositions(Mapsui.IReadOnlyViewport,Mapsui.Geometries.BoundingBox,Mapsui.Geometries.BoundingBox,Mapsui.Geometries.BoundingBox,System.Single)">GetScaleBarTextPositions(IReadOnlyViewport, BoundingBox, BoundingBox, BoundingBox, Single)</h4>
  <div class="markdown level1 summary"><p>Calculates the top-left-position of upper and lower text</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public (float posX1, float posY1, float posX2, float posY2)GetScaleBarTextPositions(IReadOnlyViewport viewport, BoundingBox textSize, BoundingBox textSize1, BoundingBox textSize2, float stroke)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.IReadOnlyViewport.html">IReadOnlyViewport</a></td>
        <td><span class="parametername">viewport</span></td>
        <td><p>The viewport</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="Mapsui.Geometries.BoundingBox.html">BoundingBox</a></td>
        <td><span class="parametername">textSize</span></td>
        <td><p>Default textsize for the string &quot;9999 m&quot;</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="Mapsui.Geometries.BoundingBox.html">BoundingBox</a></td>
        <td><span class="parametername">textSize1</span></td>
        <td><p>Size of upper text of scalebar</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="Mapsui.Geometries.BoundingBox.html">BoundingBox</a></td>
        <td><span class="parametername">textSize2</span></td>
        <td><p>Size of lower text of scalebar</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">stroke</span></td>
        <td><p>Width of line</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ValueTuple</span>&lt;<span class="xref">System.Single</span>, <span class="xref">System.Single</span>, <span class="xref">System.Single</span>, <span class="xref">System.Single</span>&gt;</td>
        <td><p>posX1 as left position of upper scalebar text
posY1 as top position of upper scalebar text
posX2 as left position of lower scalebar text
posY2 as top position of lower scalebar text</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_HandleWidgetTouched_Mapsui_INavigator_Mapsui_Geometries_Point_.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.HandleWidgetTouched(Mapsui.INavigator%2CMapsui.Geometries.Point)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L471">View Source</a>
  </span>
  <a id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_HandleWidgetTouched_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.HandleWidgetTouched*"></a>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_HandleWidgetTouched_Mapsui_INavigator_Mapsui_Geometries_Point_" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.HandleWidgetTouched(Mapsui.INavigator,Mapsui.Geometries.Point)">HandleWidgetTouched(INavigator, Point)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override bool HandleWidgetTouched(INavigator navigator, Point position)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.INavigator.html">INavigator</a></td>
        <td><span class="parametername">navigator</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="Mapsui.Geometries.Point.html">Point</a></td>
        <td><span class="parametername">position</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="overrides">Overrides</h5>
  <div><a class="xref" href="Mapsui.Widgets.Widget.html#Mapsui_Widgets_Widget_HandleWidgetTouched_Mapsui_INavigator_Mapsui_Geometries_Point_">Widget.HandleWidgetTouched(INavigator, Point)</a></div>
  <h3 id="events">Events
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget_PropertyChanged.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget.PropertyChanged%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L63">View Source</a>
  </span>
  <h4 id="Mapsui_Widgets_ScaleBar_ScaleBarWidget_PropertyChanged" data-uid="Mapsui.Widgets.ScaleBar.ScaleBarWidget.PropertyChanged">PropertyChanged</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public event PropertyChangedEventHandler PropertyChanged</code></pre>
  </div>
  <h5 class="eventType">Event Type</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">PropertyChangedEventHandler</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="implements">Implements</h3>
  <div>
      <a class="xref" href="Mapsui.Widgets.IWidget.html">IWidget</a>
  </div>
  <div>
      <span class="xref">INotifyPropertyChanged</span>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Widgets_ScaleBar_ScaleBarWidget.md&amp;value=---%0Auid%3A%20Mapsui.Widgets.ScaleBar.ScaleBarWidget%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/Widgets/ScaleBar/ScaleBarWidget.cs/#L35" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
